﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EHTWebsiteProject.Code.BLL;

namespace EHTWebsiteProject
{
    public partial class Guide : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Loaddata();
            }
        }

        public void Loaddata()
        {
            rpHVOR.DataSource = FAQsProvider.GetFAQsByType(1, false);
            rpHVOR.DataBind();

            rpBETALING.DataSource = FAQsProvider.GetFAQsByType(2, false);
            rpBETALING.DataBind();


            rpFRAKT.DataSource = FAQsProvider.GetFAQsByType(3, false);
            rpFRAKT.DataBind();


            rpSupport.DataSource = FAQsProvider.GetFAQsByType(4, false);
            rpSupport.DataBind();


            rpHVA.DataSource = FAQsProvider.GetFAQsByType(5, false);
            rpHVA.DataBind();


            rpMatt.DataSource = FAQsProvider.GetFAQsByType(6, false);
            rpMatt.DataBind();
        }
    }
}